//
//  YSComtBottomView.h
//  Yueshi
//
//  Created by Northwan on 15/8/7.
//  Copyright (c) 2015年 悦食中国. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol YSComtBottomViewDelegate <NSObject>
@optional
/**
 *  点击发表时回调的方法，告诉外界要发布的内容
 *
 *  @param text 内容
 */
-(void)publish:(NSString *)text;
/**
 *  当高度改变时，回调这个方法，告诉外界高度的偏移量
 *
 *  @param offset 高度偏移量
 */
- (void)textViewTextDidChange:(CGFloat)offset;
@end

@interface YSComtBottomView : UIView
+(instancetype)bottomView;
@property (weak, nonatomic) IBOutlet UITextView *commentTextView;
@property (weak, nonatomic) IBOutlet UIButton *publishBtn;
@property (weak, nonatomic) id<YSComtBottomViewDelegate> delegate;

@end
